<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/SystemCenter/usersettings.css">
<div  class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>用户设置</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md3" style="overflow: auto">
                    <span class="usermenutit">机构名称</span>
                    <div id="usermenu" class="demo-tree demo-tree-box"></div>
                </div>
                <div class="layui-col-md9">
                    <table class="layui-table" id="userdettingsid" lay-filter="userdettingstable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="layui-card-body" id="selectuser" style="display: none;">

</div>
<div id="erelevance" style="display: none;">
    <table class="layui-hide" id="erelevanceid" lay-filter="erelevanceid"></table>
    <div>
        <input type="button" class="layui-btn" value="提交" id="erelevancetj">
    </div>
</div>
<script type="text/html" id="selectuserhtml">
    <div class="layui-row selectuser-row">
        <div class="layui-col-md8">
            <div class="grid-demo">
                <div class="selectdiv">
                    <label>用户姓名：</label>
                    <span id="name">{{d.name==null?"":d.name}}</span>
                </div>
                <div class="selectdiv">
                    <label>英文名：</label>
                    <span id="englishName">{{d.englishName==null?"":d.englishName}}</span>
                </div>

            </div>
            <div class="grid-demo">
                <div class="selectdiv">
                    <label>用户编号：</label>
                    <span id="code">{{d.code==null?"":d.code}}</span>
                </div>
<Rolue:operate operateID="systemcenter_newuser_info" roleID="systemcenter_newuser_info" mark="测试 ">

                <div class="selectdiv">
                    <label>角色：</label>
                    <span id="roles">{{d.roles==null?"":d.roles}}</span>
                </div>
</Rolue:operate>
            </div>

            <div class="grid-demo">
                <div class="selectdiv">
                    <label>性别：</label>
                    <span id="sex">{{d.sex==null?"":d.sex==0?"女":"男"}}</span>
                </div>
                <div class="selectdiv">
                    <label>入职日期：</label>
                    <span id="birthday">{{d.birthday==null?"":d.birthday}}</span>
                </div>
            </div>
            <div class="grid-demo">
                <div class="selectdiv">
                    <label>邮件地址：</label>
                    <span id="email">{{d.email==null?"":d.email}}</span>
                </div>
                <div class="selectdiv">
                    <label>家庭住址：</label>
                    <span id="address">{{d.address==null?"":d.address}}</span>
                </div>
            </div>
            <div class="grid-demo">
                <div class="selectdiv">
                    <label>电话：</label>
                    <span id="telephone">{{d.telephone==null?"":d.telephone}}</span>
                </div>
                <div class="selectdiv">
                    <label>手机：</label>
                    <span id="phone">{{d.phone==null?"":d.phone}}</span>
                </div>
            </div>
            <div class="grid-demo">
                <div class="selectdiv">
                    <label>QQ：</label>
                    <span id="qq">{{d.qq==null?"":d.qq}}</span>
                </div>
<Rolue:operate operateID="systemcenter_newuser_info" roleID="systemcenter_newuser_info" mark="测试 ">

                <div class="selectdiv">
                    <label>是否管理层：</label>
                    <span id="msn">{{d.msn==null?"":d.msn}}</span>
                </div>
</Rolue:operate>
            </div>
            <div class="grid-demo">
                <div class="selectdiv">
                    <label>Skype：</label>
                    <span id="skype">{{d.skype==null?"":d.skype}}</span>
                </div>
                <div class="selectdiv">
                    <label>阿里旺旺：</label>
                    <span id="ww">{{d.ww==null?"":d.ww}}</span>
                </div>
            </div>
            <div class="grid-demo">
                <div class="selectdiv">
                    <label>中文签字章：</label>
                    <img src="{{d.chinaSealUrl==null?'':d.chinaSealUrl}}" id="chinaSealUrl"/>
                </div>
                <div class="selectdiv">
                    <label>英文签字章：</label>
                    <img src="{{d.englishSealUrl==null?'':d.englishSealUrl}}" id="englishSealUrl"/>
                </div>
            </div>
            <div class="grid-demo">
                <label>备注：</label>
                <span id="desc">{{d.desc==null?"":d.desc}}</span>
            </div>
        </div>
        <div class="layui-col-md3 selectuser-md3">
            <%--statics/images/layui-logo.jpg--%>
               <%-- {{d.userphotos}}--%>
            <img src="{{d.headimg==null?'':d.headimg}}" id="headimg" />
        </div>
    </div>
</script>


<div class="layui-card" id="upDatePswDiv" style="display:none;">
    <div class="layui-card-body">
        <div class="layui-row">
            <form class="layui-form layui-from-pane" action="" id="userUpdate-form" lay-filter="userUpdate-form">
                <div class="layui-col-xs10">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">用户姓名</label>
                            <div class="layui-input-inline">
                                <input class="text layui-input" type="text" name="userName" id="userName" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">用户编码</label>
                            <div class="layui-input-inline">
                                <input class="text layui-input" type="text" name="userCode" id="userCode" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">新密码</label>
                            <div class="layui-input-inline">
                                <input class="text layui-input" type="text" name="newPassword" id="newPassword" autocomplete="off" placeholder="">
                            </div>
                        </div>
                    </div>

                </div>
            </form>
        </div>
    </div>
</div>






<script type="text/html" id="toolbarDemo">
    <button class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="neweuser">新增</button>
    <button class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="upDatePsw">修改密码</button>
    {{# if(isContainsRoleUser){ }}
        <button class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="deleteuser" id="delBut">删除</button>
    {{# } }}
    <input class="text layui-input" type="text" name="username" id="username" autocomplete="off" placeholder="用户姓名">
    <button class="layui-btn layui-btn-sm layui-btn-warm" lay-event="searchs"><i class="layui-icon layui-icon-search"></i>搜索</button>
</script>
<script type="text/html" id="usererelevance">
    {{# if(d.flag=='true' ){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs " lay-event="erelevance">关联账号</a>
    {{# } }}
    {{# if(d.flag=='false' ){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs layui-btn-disabled" lay-event="erelevance">关联账号</a>
    {{# } }}
</script>
<script type="text/html" id="usereditor">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    {{# if(isContainsRoleUser){ }}
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{# } }}
    {{# if(d.flag=='false' ){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs " lay-event="qxglzh">取消关联帐号</a>
    {{# } }}
    {{# if(d.flag=='true' ){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs layui-btn-disabled" lay-event="qxglzh">取消关联帐号</a>
    {{# } }}
</script>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/js/login/jsencrypt.js"></script>
<script src="statics/js/login/jQuery.md5.js"></script>
<script src="statics/js/SystemCenter/usersettings.js"></script>